import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author liuchaoqun
 * @date 2022/7/7
 * @Description
 */
public class StringSplit {
    public static void main(String[] args) {
//        String test = "1,2,3,4,5,6";
//        List<String> spilt = StringSplit.spilt(test, ",");
//        for (int i = 0; i < spilt.size(); i++) {
//            System.out.println(spilt.get(i));
//        }

        String test = "/catalog/search/list?deep=0";
        String[] split = test.split("[?]");
        String s = split[0];
    }
    public static List<String> spilt(String text, String splitFlag) {
        return Arrays.asList(text.split(splitFlag));
    }

}
